package com.loan.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.loan.entity.Repayment;
import com.loan.vo.RepaymentVO;

import java.util.List;

public interface RepaymentService extends IService<Repayment> {
    /**
     * @Desc: 更新合同信息
     * @Param: [repayment]
     * @Return: boolean
     * @Author: wYin
     * @Date: 2022/1/19 20:42
     */
    public boolean repaymentUpdate(Repayment repayment);

    /**
     * @Desc: 接收传入的业务员id和合同id查询指定的还款信息
     * @Param: [repayment]
     * @Return: java.util.List<com.loan.entity.Repayment>
     * @Author: wYin
     * @Date: 2022/1/22 17:55
     */
    public List<Repayment> getAppointRepayment(Repayment repayment);

    /**
     * @Desc: 通过传入的还款id，以及客户id、合同编号得到合同信息、用户信息、以及违期罚息
     * @Param: [repayment]
     * @Return: com.loan.vo.RepaymentVO
     * @Author: wYin
     * @Date: 2022/1/23 17:11
     */
    public RepaymentVO getRepaymentAllInfo(Repayment repayment);
}
